<div>
<% remote_form_for @setting,
     :update => :new_or_edit_my_setting,
     :url => create_in_show_tools_site_healths_url,
     :method => :post,
     :html => {
      :id => :setting_form
     } do |f| %> 
  <%= render :file => 'tools/site_healths/_form_in_show.html', :locals => { :f => f } %>                                
<% end %>
  <dl class='bottom'>
    <dd>
      <%= link_to_remote "给网站把把脉",
            :url => test_site_heart_beat_tools_site_healths_url,
            :method => :post,
            :with => "'&url=' + $F('user_tool_setting_site_health_site_url') + '&content=' + $F('user_tool_setting_site_health_content_keyword')",
            :loading => "$('test_site').innerHTML='把脉中...'",
            :failure => "alert(request.responseText);",
            :success => "alert(request.responseText);",
            :complete => "$('test_site').innerHTML='给网站把把脉'",
            :html => {
              :title => '看看所填的网站能否访问',
              :class => :other,
              :id => :test_site            
            }
       %>
      <%= link_to_function "保存我的设置", "$('setting_form').onsubmit()", :class => :submit %>
      <%= link_to_remote "重置",
            :update => :new_or_edit_my_setting,
            :url => new_in_show_new_tools_site_health_url,
            :method => :get,
            :html => {
              :class => :reset
            } %>
      <%= link_to_remote  "返回", 
            :update => :new_or_edit_my_setting,
            :url => index_in_show_tools_site_healths_url,
            :method => :get,
            :html => {
              :class => :return
            } %>
    </dd>
  </dl>
</div>